package com.ostrich.shopping.ui.user.viewmodel;

import com.ostrich.shopping.net.BaseResponseEntity;
import com.ostrich.shopping.ui.user.entity.UserEntity;
import com.ostrich.shopping.ui.user.repository.UserRepository;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

/**
 * @Author : yaotianxue
 * @Time : On 2023/9/26 15:26
 * @Description : RegisterViewModel
 */
public class RegisterViewModel extends ViewModel {
    private UserRepository mUserRepository = new UserRepository();
    public LiveData<BaseResponseEntity<UserEntity>> register(UserEntity user){
        return mUserRepository.register(user);
    }
}
